﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="MediaMonitor.Users.WebForm1" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
    <title>ASP.NET ListView Demo - Integrated paging</title>
    <link href="../css/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
    <div>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ListViewPanel1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
                        </telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
        <div style="width: 880px;font-size:12px">
            <asp:Panel ID="ListViewPanel1" runat="server">
                <telerik:RadListView ID="RadListView1" DataSourceID="SqlDataSource1" runat="server"
                    ItemPlaceholderID="EmployeesContainer" DataKeyNames="ID" AllowPaging="true"
                    PageSize="6">
                    <LayoutTemplate>
                        <fieldset id="FieldSet1">
                            <legend>Employees</legend>
                            <asp:PlaceHolder ID="EmployeesContainer" runat="server"></asp:PlaceHolder>
                            <div style="clear: both">
                            </div>
                            <div>
                                <div style="float: left; margin-left: 25%; ">
                                    <asp:Button runat="server" ID="btnFirst" CommandName="Page" CommandArgument="First"
                                        Text="First" Enabled="<%#Container.CurrentPageIndex > 0 %>"></asp:Button>
                                    <asp:Button runat="server" ID="btnPrev" CommandName="Page" CommandArgument="Prev"
                                        Text="Prev" Enabled="<%#Container.CurrentPageIndex > 0 %>"></asp:Button>
                                    <span style="vertical-align: middle; line-height:22px; display:inline-block; ">Page
                                        <%#Container.CurrentPageIndex + 1 %>
                                        of
                                        <%#Container.PageCount %></span>
                                    <asp:Button runat="server" ID="btnNext" CommandName="Page" CommandArgument="Next"
                                        Text="Next" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>">
                                    </asp:Button>
                                    <asp:Button runat="server" ID="btnLast" CommandName="Page" CommandArgument="Last"
                                        Text="Last" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>">
                                    </asp:Button>
                                </div>
                                <div>
                                    <span style="vertical-align: middle; font-weight: bold;line-height:22px; padding-left: 5px;">Page Size:</span>
                                    <telerik:RadComboBox runat="server" ID="cmbPageSize" OnSelectedIndexChanged="cmbPageSize_SelectedIndexChanged"
                                        AutoPostBack="true" Width="60px" SelectedValue="<%#Container.PageSize %>">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="3" Value="3"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="6" Value="6"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="9" Value="9"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="12" Value="12"></telerik:RadComboBoxItem>
                                        </Items>
                                    </telerik:RadComboBox>
                                </div>
                            </div>
                        </fieldset>
                    </LayoutTemplate>
                    <ItemTemplate>
                           <div id="Div4" runat="server" class="span3 press-inn tv-inn">
                                            <h2>
                                                <%# Eval("MediaTypeName")%>
                                                - <small>
                                                    <%# Convert.ToDateTime(Eval("RFDate")).ToString("d")%></small></h2>
                                            <div class="press-data">
                                                <h5>
                                                    <%#Eval("Title")%></h5>
                                                <div class="info">
                                                    <p>
                                                        <b>Fecha:</b>
                                                        <%# Convert.ToDateTime(Eval("RFDate")).ToString("d")%></p>
                                                    <p>
                                                        <b>Medio:</b><span class="blue-color">
                                                            <%#Eval("MediaName")%>
                                                        </span>
                                                    </p>
                                                    <p>
                                                        <b>Seccion:</b> <span>
                                                            <%#Eval("SectionDescription")%></span></p>
                                                </div>
                                                <div class="press-detail" id='IDTV-<%# Eval("ID") %>'>
                                                    <p>
                                                        <%#Eval("NewsSummary")%></p>
                                                </div>
                                                <div class="press-detail" style="display: none;" id='IDTVText-<%# Eval("ID") %>'>
                                                    <p>
                                                        <%#Eval("News")%></p>
                                                </div>
                                            </div>
                                            <div class="button-div">
                                                <div class="button-div-text">
                                                    <p>
                                                        Calificacion:<span>
                                                            <%#Eval("Calification")%></span></p>
                                                    <p>
                                                        Importancia:<span>
                                                            <%#Eval("Important")%></span></p>
                                                </div>
                                                <div class="button">
                                                   <a href="#" val='<%# Eval("ID") %>' class="topopup4" title="Read More">
                                                        <img src="../images/icon.jpg">
                                                    </a><a title="Share News" href="#" class="topopup" val='<%# Eval("ID") %>'>
                                                        <img src="../images/icon1.jpg"></a> <a href="#" class="topopup2" val='<%# Eval("ID") %>' title="Comments">
                                                            <img src="../images/chat-icon.jpg">
                                                        </a><a title="View" href="javascript:void(0);" onclick="PopupCenter('../sitefiles/NewsAlertvideo.aspx?SectionCode=<%#Eval("SectionCode")%>&t=f&ID=<%#Eval("ID")%>', '_blank', 350, 280); "
                                                            style='display: <%#Eval("MediaTypeCode").ToString() == "1" ? "inline" : "none"  %>'>
                                                            <img src="../images/view-icon.jpg">
                                                        </a><a title="Share Video or Image" href="#" class="topopup3" val='<%# Eval("ID") %>' sectioncode='<%#Eval("SectionCode")%>'
                                                            mediatypename='<%#Eval("MediaTypeName")%>' imageaudiovideoname=' <%# Eval("ImageAudioVideoName") %>' >
                                                            <img alt="Share Vedio" src="../images/share-video.jpg" />
                                                        </a></div>
                                            </div>
                                        </div>
                    </ItemTemplate>
                </telerik:RadListView>
            </asp:Panel>
        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBAdex %>"
            SelectCommand="SELECT * FROM [vNewsAlertLog]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>